package ${package_name}.mysql.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
* 描述：${table_annotation}模型
* @author ${author}
* @date ${date}
*/
@Entity
@Table(name = "${table_name}")
public class ${model_name}{

<#if model_column?exists>
    <#list model_column as model>
        <#if model.columnComment != ''>
        /**
        *${model.columnComment}
        */
        </#if>
        <#if model.columnType = 'STRING'>
    @Column(name = "${model.columnName}")
    private String ${model.columnName?uncap_first};
        </#if>
        <#if model.columnType = 'LONG'>
    @Column(name = "${model.columnName}")
    private Date ${model.columnName?uncap_first};
        </#if>
    </#list>
</#if>

<#if model_column?exists>
    <#list model_column as model>
        <#if model.columnType = 'STRING' >
    public String get${model.columnName}() {
        return this.${model.columnName?uncap_first};
    }

    public void set${model.columnName}(String ${model.columnName?uncap_first}) {
        this.${model.columnName?uncap_first} = ${model.columnName?uncap_first};
    }

        </#if>
    <#if model.columnType = 'LONG'>
    public Date get${model.columnName}() {
    return this.${model.columnName?uncap_first};
    }

    public void set${model.columnName}(Date ${model.columnName?uncap_first}) {
    this.${model.columnName?uncap_first} = ${model.columnName?uncap_first};
    }
    </#if>
    </#list>
</#if>

}